
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>HouDun许愿墙</title>
	<link rel="stylesheet" href="./Css/index.css" />
	<script type="text/javascript" src='./Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='./Js/index.js'></script>

</head>

<body>
<div id='top'>
		<span id='send'></span>
	</div>

	<div id='main'>
               <?php
                        foreach($wishlist as $v)
                        {
                        ?>
            <dl class='paper a1'>                 
			<dt>
				<span class='username'><?php echo $v['username']?></span>
				<span class='num'>No.0000<?php echo $v['id']?></span>
			</dt>
			<dd class='content'><?php echo $v['content']?></dd>
			<dd class='bottom'>
				<span class='time'><?php echo $v['m_date']?></span>
				<a href="javascript:" class='close' onclick="if(confirm('确定删除吗？')) location.href='wishDel.php? id=<?php echo $v['id']?>'"></a><a href="wishUpdate.php? id=<?php echo $v['id']?>" class='update'></a>
			</dd>
 
		</dl>
		
             <?php
                        }
                        ?> 
            
	</div>


	<div id='send-form'>
		<p class='title'><span>许下你的愿望</span><a href="" id='close'></a></p>
                <form action="wishAdd.php" name='wish'>
			<p>
				<label for="username">昵称：</label>
				<input type="text" name='username' id='username'/>
			</p>
			<p>
				<label for="content">愿望：(您还可以输入&nbsp;<span id='font-num'>50</span>&nbsp;个字)</label>
				<textarea name="content" id='content'></textarea>
				<div id='phiz'>
					<img src="./Images/phiz/zhuakuang.gif" alt="抓狂" />
					<img src="./Images/phiz/baobao.gif" alt="抱抱" />
					<img src="./Images/phiz/haixiu.gif" alt="害羞" />
					<img src="./Images/phiz/ku.gif" alt="酷" />
					<img src="./Images/phiz/xixi.gif" alt="嘻嘻" />
					<img src="./Images/phiz/taikaixin.gif" alt="太开心" />
					<img src="./Images/phiz/touxiao.gif" alt="偷笑" />
					<img src="./Images/phiz/qian.gif" alt="钱" />
					<img src="./Images/phiz/huaxin.gif" alt="花心" />
					<img src="./Images/phiz/jiyan.gif" alt="挤眼" />
				</div>
			</p>

                        <p><input class="btn" type="submit" value="" id='send-btn' style="border:0; width: 134px;height: 54px"/>
                           <input class="btn" type="reset" value="" id='send-btn2' style="border:0; width: 134px;height: 54px"/>
                        </p>
		</form>
               
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('#send,#close,.close','background');
    </script>
<![endif]-->
</body>

</body>
</html>
